package com.ecut.property_project.mapper.character;

import com.ecut.property_project.model.character.Role;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface RoleMapper {
    public List<Role> selectAll();

    public List<Role> selectByPage(Integer page, Integer pageSize);

    //通过角色id获取权限
    List<Role> findRoleByRid(Integer rid);

    //删除用户角色对应
    Boolean deleteUserRole(Integer id);
}
